package com.ss.android.wenda.answer.detail2;

import com.ss.android.article.base.feature.app.d.ImpressionListAdapter;
import com.ss.android.article.base.ui.ScrollListenerWebView.OnScrollChangeListener;

final class u implements OnScrollChangeListener {
    private final NewAnswerDetailFragment a;

    u(NewAnswerDetailFragment arg1) {
        this.a = arg1;

    }

    public final void onScrollChanged(int scrollY) {
        NewAnswerDetailFragment v0 = this.a;
        v0.c("");
        ImpressionListAdapter v1 = v0.l;
        if(v1 != null) {
            int v0_1 = v0.m();
            if(v0_1 > 0) {
                v1.onMovedToScrapHeap(scrollY / v0_1);
            }
        }

        if(NewAnswerDetailFragment.a(this.a) != null && NewAnswerDetailFragment.a(this.a).mWebView != null) {
            NewAnswerDetailFragment.q$a v0_2 = NewAnswerDetailFragment.o(this.a);
            if(v0_2 != null) {
                v0_2.maxscrollheight = Math.max(v0_2.maxscrollheight, scrollY);
            }
        }
    }
}

